package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name="id", referencedColumnName="id")
public class CommentVideo extends Comment{
	
	
	@ManyToOne
	private Video video;
	

	public CommentVideo(User user, String comment, Video video) {
		super(user, comment);
		this.video = video;
	}

	public Video getVideo() {
		return video;
	}

	public void setVideo(Video video) {
		this.video = video;
	}
	
	
	
	
}
